<template>
  <v-container>
    <HomeNewAppBar />
    <div class="mt-4"></div>
    <Broadcast />
    <div class="mt-4"></div>
    <Recommend />
    <div class="mt-4"></div>
    <JNavN></JNavN>
    <div class="mt-4"></div>
  </v-container>
  <IndexPlay />
</template>
<script setup lang="ts" name="star-home">
import { getBbkz } from "@/api/cloudbase-bbkz";
import Broadcast from "@/components/Broadcast.vue";
import IndexPlay from "@/components/BottomPlayer.vue";
import JNavN from "./components/JnavNnew.vue";
import useAudioShortKey from "@/hooks/useAudioShortKey";
import Recommend from "./components/Recommend.vue";
import HomeNewAppBar from "./components/HomeNewAppBar";

useAudioShortKey();

// 版本控制更新
async function gbKz() {
  try {
    const versionItem = await getBbkz();
    if (versionItem.data) {
      localStorage.getItem("verison");
      const nv = versionItem.data.version;
      const cv = localStorage.getItem("verison") || "";
      if (cv !== nv) {
        if (versionItem.data.isShow == 1) {
          this.dialogVisable = true;
        }
        localStorage.setItem("verison", nv);
      }
      this.msgInfoContent = versionItem.data.context;
      this.$nextTick(() => {
        this.msgLoading = false;
      });
    }
  } catch (e) {
    console.log(e);
  }
}
</script>
<style lang="scss" scoped></style>
